import { lazy, Suspense } from 'react'
import { AppstoreOutlined, MailOutlined, SettingOutlined } from '@ant-design/icons';  // 引入ant图标
// 一定引入antd的样式
import 'antd/dist/antd.css'

// import AccountManage from '../pages/AccountManage/AccountManage'
const AccountManage = lazy(() => import('../pages/AccountManage/AccountManage'));
// import AddAccount from '../pages/AddAccount/AddAccount'
const AddAccount = lazy(() => import('../pages/AddAccount/AddAccount'));
// import AddBed from '../pages/AddBed/AddBed'
const AddBed = lazy(() => import('../pages/AddBed/AddBed'));
// import AddDepartment from '../pages/AddDepartment/AddDepartment'
const AddDepartment = lazy(() => import('../pages/AddDepartment/AddDepartment'));
// import AddDrug from '../pages/AddDrug/AddDrug'
const AddDrug = lazy(() => import('../pages/AddDrug/AddDrug'));
// import DepartmentManage from '../pages/DepartmentManage/DepartmentManage'
const DepartmentManage = lazy(() => import('../pages/DepartmentManage/DepartmentManage'));
// import DiseaseBigData from '../pages/DiseaseBigData/DiseaseBigData'
const DiseaseBigData = lazy(() => import('../pages/DiseaseBigData/DiseaseBigData'));
// import DispensaryStats from '../pages/DispensaryStats/DispensaryStats'
const DispensaryStats = lazy(() => import('../pages/DispensaryStats/DispensaryStats'));
// import DoctorList from '../pages/DoctorList/DoctorList'
const DoctorList = lazy(() => import('../pages/DoctorList/DoctorList'));
// import DoctorReviseInfo from '../pages/DoctorReviseInfo/DoctorReviseInfo'
const DoctorReviseInfo = lazy(() => import('../pages/DoctorReviseInfo/DoctorReviseInfo'));
// import DoctorScheduling from '../pages/DoctorScheduling/DoctorScheduling'
const DoctorScheduling = lazy(() => import('../pages/DoctorScheduling/DoctorScheduling'));
// import DrugConsumptionStats from '../pages/DrugConsumptionStats/DrugConsumptionStats'
const DrugConsumptionStats = lazy(() => import('../pages/DrugConsumptionStats/DrugConsumptionStats'));
// import IntegratedManage from '../pages/IntegratedManage/IntegratedManage'
const IntegratedManage = lazy(() => import('../pages/IntegratedManage/IntegratedManage'));
// import MedicalEquipmentStats from '../pages/MedicalEquipmentStats/MedicalEquipmentStats'
const MedicalEquipmentStats = lazy(() => import('../pages/MedicalEquipmentStats/MedicalEquipmentStats'));
// import MedicalSuppliesManage from '../pages/MedicalSuppliesManage/MedicalSuppliesManage'
const MedicalSuppliesManage = lazy(() => import('../pages/MedicalSuppliesManage/MedicalSuppliesManage'));
// import NurseList from '../pages/NurseList/NurseList'
const NurseList = lazy(() => import('../pages/NurseList/NurseList'));
// import NurseReviseInfo from '../pages/NurseReviseInfo/NurseReviseInfo'
const NurseReviseInfo = lazy(() => import('../pages/NurseReviseInfo/NurseReviseInfo'));
// import NurseScheduling from '../pages/NurseScheduling/NurseScheduling'
const NurseScheduling = lazy(() => import('../pages/NurseScheduling/NurseScheduling'));
// import PrescriptionIssuance from '../pages/PrescriptionIssuance/PrescriptionIssuance'
const PrescriptionIssuance = lazy(() => import('../pages/PrescriptionIssuance/PrescriptionIssuance'));
// import PrescriptionManage from '../pages/PrescriptionManage/PrescriptionManage'
const PrescriptionManage = lazy(() => import('../pages/PrescriptionManage/PrescriptionManage'));
// import RegistrationManage from '../pages/RegistrationManage/RegistrationManage'
const RegistrationManage = lazy(() => import('../pages/RegistrationManage/RegistrationManage'));
// import RevenueDataSheet from '../pages/RevenueDataSheet/RevenueDataSheet'
const RevenueDataSheet = lazy(() => import('../pages/RevenueDataSheet/RevenueDataSheet'));


const routes = [
  {
    key: 'sub0',
    icon: <MailOutlined />,
    label: '首页',
    
  },
  {
    key: 'sub1',
    icon: <MailOutlined />,
    label: '医院综合',
    children: [
      {
        key: 'sub1-1',
        label: '科室管理',
        path: '/departmentManage',
        element: <DepartmentManage />
      },
      {
        key: 'sub1-2',
        label: '添加科室',
        path: '/addDepartment',
        element: <AddDepartment />
      },
    ],
  },
  {
    key: 'sub2',
    icon: <AppstoreOutlined />,
    label: '患者大数据',
    children: [
      {
        key: 'sub2-1',
        label: '药品耗材统计',
        path: '/drugConsumptionStats',
        element: <DrugConsumptionStats />
      },
      {
        key: 'sub2-2',
        label: '疾病大数据',
        path: '/diseaseBigData',
        element: <DiseaseBigData />
      },
    ],
  },
  {
    key: 'sub3',
    icon: <SettingOutlined />,
    label: '动态个人',
    children: [
      {
        key: 'sub3-1',
        label: '挂号管理',
        path: '/registrationManage',
        element: <RegistrationManage />
      },
    ],
  },
  {
    key: 'sub4',
    icon: <SettingOutlined />,
    label: '中西医药房',
    children: [
      {
        key: 'sub4-1',
        label: '处方综合管理',
        path: '/prescriptionManage',
        element: <PrescriptionManage />
      },
      {
        key: 'sub4-2',
        label: '营收数据表',
        path: '/revenueDataSheet',
        element: <RevenueDataSheet />
      },
      {
        key: 'sub4-3',
        label: '药房统计',
        path: '/dispensaryStats',
        element: <DispensaryStats />
      },
    ],
  },
  {
    key: 'sub5',
    icon: <SettingOutlined />,
    label: '医疗前线',
    children: [
      {
        key: 'sub5-1',
        label: '处方开具',
        path: '/prescriptionIssuance',
        element: <PrescriptionIssuance />
      },
      {
        key: 'sub5-2',
        label: '处方综合管理',
        path: '/prescriptionManage',
        element: <PrescriptionManage />
      },
      {
        key: 'sub5-3',
        label: '医疗器材统计',
        path: '/medicalEquipmentStats',
        element: <MedicalEquipmentStats />
      }
    ],
  },
  {
    key: 'sub6',
    icon: <SettingOutlined />,
    label: '医疗药品出入库',
    children: [
      {
        key: 'sub6-1',
        label: '医疗用品综合管理',
        path: '/medicalSuppliesManage',
        element: <MedicalSuppliesManage />
      },
      {
        key: 'sub6-2',
        label: '添加药品耗材',
        path: '/addDrug',
        element: <AddDrug />
      },
    ],
  },
  {
    key: 'sub7',
    icon: <SettingOutlined />,
    label: '分级医生',
    children: [
      {
        key: 'sub7-1',
        label: '排班管理',
        path: '/doctorScheduling',
        element: <DoctorScheduling />
      },
      {
        key: 'sub7-2',
        label: '综合列表',
        path: '/doctorList',
        element: <DoctorList />
      },
      {
        key: 'sub7-3',
        label: '修改个人信息',
        path: '/doctorReviseInfo',
        element: <DoctorReviseInfo />
      },
    ],
  },
  {
    key: 'sub8',
    icon: <SettingOutlined />,
    label: '分级护士',
    children: [
      {
        key: 'sub8-1',
        label: '排班管理',
        path: '/nurseScheduling',
        element: <NurseScheduling />
      },
      {
        key: 'sub8-2',
        label: '综合列表',
        path: '/nurseList',
        element: <NurseList />
      },
      {
        key: 'sub8-3',
        label: '修改个人信息',
        path: '/nurseReviseInfo',
        element: <NurseReviseInfo />
      },
    ],
  },
  {
    key: 'sub9',
    icon: <SettingOutlined />,
    label: '病床管理',
    children: [
      {
        key: 'sub9-1',
        label: '添加床位',
        path: '/addBed',
        element: <AddBed />
      },
      {
        key: 'sub9-2',
        label: '综合管理',
        path: '/integratedManage',
        element: <IntegratedManage />
      },
    ],
  },
  {
    key: 'sub10',
    icon: <SettingOutlined />,
    label: '全账号管理',
    children: [
      {
        key: 'sub10-1',
        label: '账号管理',
        path: '/accountManage',
        element: <AccountManage />
      },
      {
        key: 'sub10-2',
        label: '添加账号',
        path: '/addAccount',
        element: <AddAccount />
      },
    ],
  },
];


export default routes



